package cate.game.play.skill.brother;

import cate.common.util.XT;
import cate.game.play.config.PlayCfgArgs;
import cate.game.play.proce.action.ctx.SkillActionCtx;

/**
 * 根据权重随机释放技能
 */
public class ChanceBS extends BrotherSkillSelector {

	private int chance;

	@Override
	protected void parseArgs(PlayCfgArgs args) {
		chance = args.getInt("概率", 0);
	}

	@Override
	protected boolean check(SkillActionCtx action) {
		return XT.chance(chance);
	}
}
